package com.donn.securitycontrolplatform.personinfo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

@Data
@TableName("personinfo")
public class PersonInfo {
    public static final String PERSON_IMG_PATH = "C:/RPM_deliver-scjg/frontend/html/dist/";
//        public static final String PERSON_IMG_PATH = "/Users/glenn/Desktop/";

    public static final String PERSON_IMG_CHILD_PATH = "face_img/";

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer sex;

    private String idno;

    private String name;

    private Boolean mapShow;


    /**
     * 部门层级id
     */
    private Integer deptid;

    /**
     * 角色id
     */
    private Integer dutyid;



    //图片地址
    @TableField(exist = false)
    private String imgPath;


    //图片
    @TableField(exist = false)
    private MultipartFile file;

    /**
     * 是否开启门禁
     */
    @TableField(exist = false)
    private String addEntranceGuard;
    /**
     * 门禁开始时间
     */
    @TableField(exist = false)
    private String startDate;
    /**
     * 门禁结束时间
     */
    @TableField(exist = false)
    private String endDate;

    /**
     * 角色名称
     */
    @TableField(exist = false)
    private String roleName;

    /**
     * 标签编号
     */
    @TableField(exist = false)
    private String tagNo;


}
